package fun.sanguo.model.enums;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户注册响应枚举类
 *
 * @author ZYP
 * @date 2023-07-18
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum UserLogonEnums {

    /**
     * 注册成功
     */
    SUCCESS("0", "注册成功"),

    /**
     * 注册失败
     */
    SMS_CAPTCHA_EXPIRED("101", "短信验证码过期"),
    SMS_CAPTCHA_INCORRECT("102", "短信验证码错误"),
    USER_REPEAT("201", "注册账号已存在"),
    USER_MOBILE_REPEAT("202", "手机号码已注册");

    /**
     * 响应代码
     */
    private String code;

    /**
     * 响应内容
     */
    private String msg;

    UserLogonEnums(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
